﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace TracyGUI.View
{
    public partial class FormConsole : Form
    {
        //static StringWriter sw = new StringWriter();
        public FormConsole()
        {
            InitializeComponent();
            this.Icon = SharedResource.Tracy;
        }

        public void AppendMessage(string message)
        {
            //sw.WriteLine(message);
            //sw.WriteLine("=================================");
            //textBoxMessages.Text = sw.ToString();
            //textBoxMessages.

            textBoxMessages.Text = message + "\r\n=======================================\r\n\r\n" + textBoxMessages.Text;
        }

        private void FormConsole_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            this.Hide();
        }
    }
}
